/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package wf3.util;

import java.io.Serializable;
import jodd.mail.EmailMessage;

/**
 *
 * @author romulogalindo
 */
public class Mensaje implements Serializable{

    private EmailMessage message;
    private String body;
    private String type;
    private String encoding;

    public Mensaje(EmailMessage message) {
        this.message = message;
        this.type = this.message.getMimeType();
        this.encoding = this.message.getEncoding();
        this.body = this.message.getContent();
    }

    public EmailMessage getMessage() {
        return message;
    }

    public void setMessage(EmailMessage message) {
        this.message = message;
    }

    public String getBody() {
        return body;
    }

    public void setBody(String body) {
        this.body = body;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getEncoding() {
        return encoding;
    }

    public void setEncoding(String encoding) {
        this.encoding = encoding;
    }

}
